package com.yx.learn.service;

import net.sf.json.JSONArray;

import com.yx.learn.domain.Authority;

public interface AuthorityService {
	
	public JSONArray getAuthoritiesByIdJson(int id)throws Exception;
	
	public JSONArray getAuthoritiesByConditionJson(String authorityName,String flag)throws Exception;//获得条件查询的权限列表

	public Authority findById(int id) throws Exception;
	
	public void saveAuthority(Authority authority) throws Exception;//保存

	public void updateAuthority(Authority authority) throws Exception;//修改

	public void deleteAuthority(Authority authority) throws Exception;//删除

	public String getAllAuthoritiesJson(int id)throws Exception;
	
}
